import http from "@/api";
export const serviceLicenseInfo = (params: any) => {
	return http.get(`/app/license/info/get`, params);
};
export const serviceAuthFind = (params: any) => {
	return http.get(`/app/auth/find`, params);
};
export const serviceLicenseGet = (params: any) => {
	return http.get(`/app/license/get`, params);
};
export const serviceAuthApply = (params: any) => {
	return http.post(`/app/auth/apply`, params);
};
export const serviceUnauthorized = (params: any) => {
	return http.get<any>(`/app/unauthorized/check`, params);
};
export const licenseAuthorityAgree = (params: any) => {
	return http.post(`/license/authority/agree`, params);
};
export const licenseAuthorityRefuse = (params: any) => {
	return http.post(`/license/authority/refuse`, params);
};
export const licenseAuthority = (params: any) => {
	return http.get(`/license/authority/find`, params);
};
export const licenseMachine = (params: any) => {
	return http.get<any>(`/license/machine/find`, params);
};
export const licenseVersion = (params: any) => {
	return http.get(`/license/version/find`, params);
};
export const licenseMachineModify = (params: any) => {
	return http.post(`/license/machine/modify`, params);
};
export const machineInfoModify = (params: any) => {
	return http.post(`/license/machine/info/modify`, params);
};
export const licenseVersionAdd = (params: any) => {
	return http.post(`/license/version/add`, params);
};
export const licenseVersionModify = (params: any) => {
	return http.post(`/license/version/modify`, params);
};
export const licenseVersionDel = (params: any) => {
	return http.post(`/license/version/remove`, params);
};
export const machineAdd = (params: any) => {
	return http.post(`/license/machine/add`, params);
};
export const machineDel = (params: any) => {
	return http.post(`/license/machine/remove`, params);
};
export const machineDownload = (params: { [key: string]: any }) => {
	return http.downloadGet("/license/machine/download", params, { responseType: "blob" });
};
